package com.lee.springcloud.controller;

import com.lee.springcloud.service.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Lee
 * @createDate 2022/1/12 16:53
 */
@Controller
public class SendMessageController {
    @Autowired
    private IMessageProvider iMessageProvider;

    @GetMapping("/sendMessage")
    @ResponseBody
    public void sendMessage(){
       iMessageProvider.send();
    }
}
